<script LANGUAGE='javascript' type='text/javascript' SRC='js/fbparam.js'></script>
<script LANGUAGE='javascript' type='text/javascript' SRC='js/fblib.js'></script>
<script LANGUAGE='javascript' type='text/javascript' SRC='js/fbfulltrack.js'></script>
<div id="popup_container_m"><!-- PopUp Contents -->
<script>

$(document).ready(function(){
  $('#pro_button').click(function(){
    if($('#popup_pro').css('display')=='none') {
      $('#popup_pro').show();
    }else {
      $('#popup_pro').hide();
    }
  });

  $('#booking_button').click(function(){
    if($('#popup_booking').css('display')=='none') {
      $('#popup_booking').show();
    }else {
      $('#popup_booking').hide();
    }
  });

  $('#certificate_button').click(function(){
    if($('#popup_certificate').css('display')=='none') {
      $('#popup_certificate').show();
    }else {
      $('#popup_certificate').hide();
    }
  });

});

</script>
<?php $this->pageTitle=Yii::app()->name; ?>

<div id="popup_pro">
  <span><a id="pro_button"><div id="pro_button"></div></a></span>
  <?php $this->widget( 'zii.widgets.CListView', array(
    'dataProvider' => $promotionProvider,
    'itemView' => '_promotionsList',
    'summaryText' => false,
) );?>
</div>
<div id="popup_certificate">
 <span><a id="certificate_button"><div id="pro_button"></div></a></span>
 <?php echo CHtml::image(Yii::app()->request->baseUrl.'/images/styles/2012_winner_trip_advisor.gif');?>
</div>
<div id="popup_booking">
 <span><a id="booking_button"><div id="pro_button"></div></a></span>
 <?php echo $this->renderPartial('reservationForm'); ?>
</div>
</div>

<div id="slideRoom_container_m"><!-- Slide Room Photos -->
<?php
$this->widget('ext.JCarousel.JCarousel', array(
    'dataProvider' => $accommodationProvider,
    'thumbUrl' => 'Yii::app()->request->getBaseUrl(true).$data->defaultPhoto->thumbnailPath',
    'imageUrl' => 'Yii::app()->request->baseUrl."/".Yii::app()->language."/accommodation/view/".$data->slug."#accom_menu"',
    'auto' => 3,
    'wrap' => 'both',
    'titleText' => '$data->name',
    'target' => 'item',
    'linkClass' => '"item"'
));
?>
</div>
<!-- Intro Content -->
<div id="content_container_m">
  <?php echo getConfig('home-title');?>
</div>

<div id="service_list_m">
  <?php $this->widget( 'zii.widgets.CListView', array(
    'dataProvider' => $serviceProvider,
    'itemView' => '_servicesList',
    'summaryText' => false,
) );?>
</div>
